<?php

namespace longhu;

class Code
{
    const SUCCESS = '10000';
    //系统错误
    const  FAILED= '10099';

    const LOST_LOGIN = '10001';
    const USER_PASSWORD_ERROR = '10002';
    const LOGIN_FAILED = '10004';
    const VALIDATE_FAILED= '10003';
    const PAY_ERROR= '30001';
    const PERMISSION_FORBIDDEN= '10005';
    const UPLOAD_ERROR= '20001';

    const WECHAT_RESPONSE_ERROR = '60001';

    public static $message_attr = [
        '10099'=> '系统错误',
        '10001'=> '登录失效，请重新登录',
        '10002'=>'密码错误',
        '10004'=> '登录失败',
        '10003'=> '数据验证失败',
        '30001'=>'支付失败',
        '10005'=>'没有权限操作',
        '20001'=>'上传失败',
        'WECHAT_RESPONSE_ERROR'=>'微信请求错误'

    ];

}